home *** CD-ROM | disk | FTP | other *** search
- %!
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- % HWGPOST >= V22.25 initialisation file
- %
- % $Id: init.ps,v 2.16 1994/11/30 16:04:56 heinz Exp $
- %
- % HWGPOST ©1993,1994 Heinz Wrobel, for Joan Thuesen
- %
- % Based loosely on Post V1.7 (C) Adrian Aylward 1989, 1991
- %
- % You may freely copy, use, and modify this file
- %
- % This file should be run before most programs
- % Developers: Do NOT run this file with job server flags like PSFLAGSAVE!
- %
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
- % A dummy status dictionary
- false setglobal
- statusdict begin
- /waittimeout 0 def
- /setdefaulttimeouts {pop pop pop} bind def
- end
-
- % We need global VM for modifications to systemdict!
- currentglobal true setglobal
- systemdict begin
-
- % Ignore CTRL/D, CTRL/L, and simple CRs
-
- <04> cvn {} def
- <0c> cvn {} def
- <0d> cvn {} def
-
- % Dummies for ugly PostScript code
-
- /setjobtimeout { pop } bind def
- /letter {} def
-
- % Ok, lets return to the previous vm mode and make the systemdict readonly
- end
- systemdict readonly pop
- setglobal
-
- %
- % We try to register all our resources on disk now. This speeds up
- % access.
- %
- % We look for the file "HWGPOSTResources" and execute it if it is available
- % If not, we check for it as "POST:HWGPOSTResources", too.
- % If this fails again, we can't do anything reasonable about it, so we don't.
- %
- (HWGPOSTResources) dup status
- {
- pop pop pop pop true
- }
- {
- pop
- (%POST%HWGPOSTResources) dup status
- {
- pop pop pop pop true
- }
- {
- pop false
- }
- ifelse
- }
- ifelse
- {
- currentglobal exch true setglobal
- run
- setglobal
- }
- if
-
- %
- % To keep compatibility with the old post.library I need to have
- % the renderband commands available. I don't want them to "clutter"
- % the PS name space by default, so they are built in as "@currentband"
- % and "@setband" and need to be redefined for "old" SW.
- %
- % I encourage any user of HWGPOST to use the "@" names for these operators
- % as I might drop support for the old names in init.ps in the future.
- %
- /currentband /@currentband load def
- /setband /@setband load def
-
- %
- % Even more ugly compatibility magic. Most people won't need this. Those who
- % do should refer to HWGPOSTlib.doc and hopefully find a way to avoid it.
- %
- systemdict /@callextfunc known {/callextfunc /@callextfunc load def} if
-
- %
- % Due to many requests the default font handling of stone age post is
- % back in disguise. If you don't want it, just throw out the definitions
- % below.
-
- % Our DefaultFont prints out big dots ...
- %
- /@DefaultFont
- <<
- /FontName /@DefaultFont
- /FontMatrix [0.001 0 0 0.001 0 0]
- /FontType 3
- /FontBBox [0 -300 500 700]
- /Encoding StandardEncoding
- /BuildChar
- { pop pop
- 500 0 50 0 450 400 setcachedevice
- 250 200 200 0 360 arc fill
- } bind
- /Painttype 0
- >>
- definefont pop
-
- %
- % Heavy magic to make the font lookup mechanism respect your choice of
- % a default font. If you want another font, you simply specify the name
- % of the font.
- %
- /@DefaultFontName /@DefaultFont def
- %/@DefaultFontName /Courier def
-
- %%% EOT %%%
-